home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / WebObjects / WebObjectsDoc_HTML / DynamicElements / RepetitionEx1.wo / RepetitionEx1.wos < prev   
Encoding:
Text File  |  1996-01-26  |  684 b   |  31 lines

  1. id featuredTours;
  2. id country;
  3. id tour;
  4.  
  5. - awake 
  6. {
  7.  // Typically, this data would come from a database.  But here
  8.  // we're creating a statically defined array containing the tour information.
  9.  
  10.     featuredTours = @(
  11.     {"name" = "Ireland";
  12.      "tours" =  ("Irish Backroads", "Famous Pubs");}, 
  13.     {"name" = "Argentina";
  14.      "tours" = ("Buenos Aires and Environs", "The Pampas");},
  15.     {"name" = "Japan";
  16.      "tours" = ("Tokyo", "Osaka", "Saporo");
  17.     }
  18.     );
  19.     return self;
  20. }
  21.  
  22. - displayInfoForTour 
  23. {
  24.     id message;
  25.     
  26.     message = [NSString stringWithFormat:@"The info for the %@ tour goes here.", tour];
  27.     [WOApp setResultMessage:message];
  28.     return [WOApp  pageWithName:@"Page2"];
  29. }
  30.  
  31.